﻿using Mes.Pendant.CustomerManagements.DTO;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Application.Services;

namespace Mes.Pendant.CustomerManagements
{
    public interface ICustomerManagementAppService : IApplicationService
    {
        /// <summary>
        /// 获取客户列表
        /// </summary>
        /// <param name="customerCode"></param>
        /// <param name="customerName"></param>
        /// <param name="page"></param>
        /// <param name="limit"></param>
        /// <returns></returns>
        (List<GetCustomerManagementDTO> list, int total) GetCustomerManagementInfo(string? customerCode, string? customerName, int page, int limit);
        /// <summary>
        /// 添加客户信息
        /// </summary>
        /// <param name="customerDto"></param>
        /// <returns></returns>
        int PostCustomerManagementInfo(CreateCustomerManagementDTO customerDto);
        /// <summary>
        /// 修改客户信息
        /// </summary>
        /// <param name="customerDto"></param>
        /// <returns></returns>
        int PutCustomerManagementInfo(UpdateCustomerManagementDTO customerDto);
        /// <summary>
        /// 删除方法
        /// </summary>
        /// <param name="customerId"></param>
        /// <returns></returns>
        int DeleteCustomerManagementInfo(int customerId);
        /// <summary>
        /// 根据Id获取用户信息
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        GetCustomerManagementDTO GetCustomerById(int id);
    }
}
